package com.example.demo.model;


import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Component
@Data
public class PageRequest {
    private Integer currentPage=1;
    private Integer pageSize=10;
    private Integer offset;

    public Integer getOffset() {
        return (currentPage-1)*pageSize;
    }
}
